import service from './require';

// 替换背景
export function changeBgcApi(file, bgc,w,h) {
    var formData = new FormData()
    formData.append("photo_file",file)
    formData.append("new_bgc",bgc)
    formData.append("photo_w",w)
    formData.append("photo_h",h)
    return service.post("/zseed/v1/photo/", formData,{responseType:"blob"})
}